gtk4.git
5 years agogl renderer: Fix an uninitialized value
Timm Bäder [Sat, 16 May 2020 21:34:25 +0000 (23:34 +0200)]
gl renderer: Fix an uninitialized value

5 years agoMerge branch 'wip/baedert/for-master' into 'master'
Matthias Clasen [Sat, 16 May 2020 23:35:51 +0000 (23:35 +0000)]
Merge branch 'wip/baedert/for-master' into 'master'

Wip/baedert/for master

Closes #2601

See merge request GNOME/gtk!1918

5 years agopopover: Fix input shape rendering
Timm Bäder [Sat, 16 May 2020 20:34:38 +0000 (22:34 +0200)]
popover: Fix input shape rendering

Once again, calling gtk_widget_get_allocation() is wrong.

Fixes #2601

5 years agoshowrendernode: Set widget overflow
Timm Bäder [Sat, 16 May 2020 07:24:29 +0000 (09:24 +0200)]
showrendernode: Set widget overflow

5 years agotexthandle: Remove min-width/height handling
Timm Bäder [Sat, 16 May 2020 06:12:50 +0000 (08:12 +0200)]
texthandle: Remove min-width/height handling

We do that automatically for all widgets.

5 years agonatives: Use GtkCssBoxes in get_surface_transform
Timm Bäder [Sat, 16 May 2020 06:01:22 +0000 (08:01 +0200)]
natives: Use GtkCssBoxes in get_surface_transform

5 years agonative: Add documenation for get_surface_transform
Timm Bäder [Sat, 16 May 2020 05:54:34 +0000 (07:54 +0200)]
native: Add documenation for get_surface_transform

5 years agopopover: Return correct values from get_surface_transform()
Timm Bäder [Sat, 16 May 2020 05:20:50 +0000 (07:20 +0200)]
popover: Return correct values from get_surface_transform()

We do not (yet) care about the box shadow here, so it's sufficient to
return the css values.

5 years agomain: Translate coordinates from surface to native before picking
Timm Bäder [Fri, 15 May 2020 06:22:04 +0000 (08:22 +0200)]
main: Translate coordinates from surface to native before picking

gtk_widget_pick() needs them to be in @self coordinates.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 16 May 2020 18:27:19 +0000 (18:27 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

broadway: Be careful about destroyed surfaces

See merge request GNOME/gtk!1917

5 years agobroadway: Be careful about destroyed surfaces
Matthias Clasen [Sat, 16 May 2020 17:47:18 +0000 (13:47 -0400)]
broadway: Be careful about destroyed surfaces

Just because we take a ref on a surface does not
guarantee that it is still usable a second later.
Check if its been destroyed in the meantime.

This is breaking the template tests in ci, since
there is no client behind the Broadway server.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 16 May 2020 17:01:30 +0000 (17:01 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

broadway: Don't create overlarge images

See merge request GNOME/gtk!1916

5 years agobroadway: Create slave devices
Matthias Clasen [Sat, 16 May 2020 16:27:22 +0000 (12:27 -0400)]
broadway: Create slave devices

The assumption is that the source device in events
is a slave device, so create pointer and keyboard
devices and use them in events.

This fixes the seat test on Broadway.

5 years agobroadway: Don't create overlarge images
Matthias Clasen [Sat, 16 May 2020 15:27:21 +0000 (11:27 -0400)]
broadway: Don't create overlarge images

Respect that cairo won't create image surfaces larger
than 32767 x 32767.

This makes the one reftest pass that specifically checks
this condition, treeview-crash-too-wide.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 16 May 2020 15:03:10 +0000 (15:03 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!1915

5 years agoUpdate Ukrainian translation
Yuri Chornoivan [Sat, 16 May 2020 14:52:15 +0000 (14:52 +0000)]
Update Ukrainian translation

5 years agoMerge branch 'broadway-surface-destroy' into 'master'
Matthias Clasen [Sat, 16 May 2020 14:16:52 +0000 (14:16 +0000)]
Merge branch 'broadway-surface-destroy' into 'master'

Broadway surface destroy

See merge request GNOME/gtk!1914

5 years agoci: Don't run opengl renderer tests on Broadway
Matthias Clasen [Sat, 16 May 2020 14:12:47 +0000 (10:12 -0400)]
ci: Don't run opengl renderer tests on Broadway

The test setup mechanism in meson is not flexible
enough to let us run different suites depending
on setup, so just pass in explicitly which suites
we want to skip, depending on the backend.

5 years agotestsuite: Add a gsk-compare-broadway suite
Matthias Clasen [Sat, 16 May 2020 14:11:52 +0000 (10:11 -0400)]
testsuite: Add a gsk-compare-broadway suite

We have a Broadway renderer, might as well spell
that out in the tests, and make the suite exclude the
3d tests it can't handle.

5 years agotestsuite: Destroy surfaces
Matthias Clasen [Sat, 16 May 2020 13:09:26 +0000 (09:09 -0400)]
testsuite: Destroy surfaces

If we don't destroy the surface, it leaks.

GDK backends keep an extra reference on the
surface for the external resources associated
with it, and only drop it in destroy().

5 years agobroadway: Keep an reference on surfaces
Matthias Clasen [Sat, 16 May 2020 13:10:28 +0000 (09:10 -0400)]
broadway: Keep an reference on surfaces

GDK backends are expected to keep a references on
their surfaces as long as they are associated with
external resources, and drop it in destroy().

This showed up as criticals in the shortcuts test
which manually creates and destroys surfaces.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 16 May 2020 11:21:00 +0000 (11:21 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

inspector: Use tabular numbers in the fps overlay

See merge request GNOME/gtk!1912

5 years agoUpdate POTFILES.in and POTFILES.skip
Piotr Drąg [Sat, 16 May 2020 10:37:01 +0000 (12:37 +0200)]
Update POTFILES.in and POTFILES.skip

5 years agoImplement diff() for color matrix nodes
Timm Bäder [Wed, 13 May 2020 14:26:35 +0000 (16:26 +0200)]
Implement diff() for color matrix nodes

This way we don't redraw color matrix nodes all the time.

5 years agoinspector: Use tabular numbers in the fps overlay
Matthias Clasen [Sat, 16 May 2020 01:26:10 +0000 (21:26 -0400)]
inspector: Use tabular numbers in the fps overlay

It is a lot more readable if it doesn't constantly jitter.

5 years agoMerge branch 'better-ci-reports' into 'master'
Matthias Clasen [Sat, 16 May 2020 00:52:56 +0000 (00:52 +0000)]
Merge branch 'better-ci-reports' into 'master'

ci: Add the backend to the reports

See merge request GNOME/gtk!1911

5 years agoMerge branch 'wip/carlosg/tablet-disconnects-master' into 'master'
Matthias Clasen [Fri, 15 May 2020 23:50:54 +0000 (23:50 +0000)]
Merge branch 'wip/carlosg/tablet-disconnects-master' into 'master'

gdk/wayland: Handle disorderly tablet/pad disconnects

See merge request GNOME/gtk!1910

5 years agoci: Add the backend to the reports
Matthias Clasen [Fri, 15 May 2020 23:49:18 +0000 (19:49 -0400)]
ci: Add the backend to the reports

We want the test names in the junit xml to be
unique across all the tests in a job, so we need
to include the backend in the test name.

And we also want to see the used backend in
the html report.

5 years agogdk/wayland: Handle disorderly tablet/pad disconnects
Carlos Garnacho [Fri, 15 May 2020 16:39:57 +0000 (18:39 +0200)]
gdk/wayland: Handle disorderly tablet/pad disconnects

If the tablet gets removed/freed while there are pad events in flight,
we leave a dangling pointer from the pad to the tablet, which may
lead to invalid reads/writes when handling the pad event(s).

5 years agoMerge branch 'headless-seatless' into 'master'
Matthias Clasen [Fri, 15 May 2020 21:13:01 +0000 (21:13 +0000)]
Merge branch 'headless-seatless' into 'master'

gtk: Handle seatless displays

See merge request GNOME/gtk!1905

5 years agoci: Ignore Broadway failures
Matthias Clasen [Fri, 15 May 2020 19:23:22 +0000 (15:23 -0400)]
ci: Ignore Broadway failures

These need some more work, so ignore them for now,
to get the initial multi-backend testsuite into
production.

5 years agodisplayclose: Quietly skip if no X available
Matthias Clasen [Fri, 15 May 2020 18:58:58 +0000 (14:58 -0400)]
displayclose: Quietly skip if no X available

5 years agoci: Run tests with different backends
Matthias Clasen [Fri, 15 May 2020 13:44:24 +0000 (09:44 -0400)]
ci: Run tests with different backends

Run the testsuite under x11, wayland and broadway
in the fedora-x86_64 job. This requires us to use
the v17 image which includes weston.

5 years agotests: Centralize our test setup a bit
Matthias Clasen [Fri, 15 May 2020 16:57:49 +0000 (12:57 -0400)]
tests: Centralize our test setup a bit

Put all of the constant environment into the
toplevel meson.build file, to reduce repetition
and copy-paste errors.

5 years agotestsuite: Add test setups for backends
Matthias Clasen [Fri, 15 May 2020 13:23:25 +0000 (09:23 -0400)]
testsuite: Add test setups for backends

Add test setups that set the GDK_BACKEND and
TEST_OUTPUT_SUBDIR environment variables.

This lets use run
meson test --setup x11 --suite reftest
meson test --setup wayland --suite reftest
and the output will be nicely separated.

We still need to do compositor / display server
setup from the outside.

5 years agotests: Allow setting a subdir for output
Matthias Clasen [Fri, 15 May 2020 13:18:35 +0000 (09:18 -0400)]
tests: Allow setting a subdir for output

meson seems somewhat weak when it comes to handling
test output. We need to get the output from different
test runs into different locations, and the only
way to communicate from a test setup with the actual
test code seems the environment, so use that.

Make all tests that produce output in files respect
a TEST_OUTPUT_SUBDIR environment variable which specifies
the name of a subdirectory to use. This is combined
with the existing --output argument, which specifies
a per-test location.

Affected tests are reftests, css performance tests
and gsk compare tests.

5 years agoci: Fix a typo in the run-docker.sh script
Matthias Clasen [Fri, 15 May 2020 12:51:22 +0000 (08:51 -0400)]
ci: Fix a typo in the run-docker.sh script

5 years agoci: Add weston and weston-libs to the fedora image
Matthias Clasen [Fri, 15 May 2020 12:31:18 +0000 (08:31 -0400)]
ci: Add weston and weston-libs to the fedora image

We want to run tests under Wayland, using weston
as the compositor. The weston-libs package contains
the headless backend for weston.

5 years agogtk: Handle seatless displays
Matthias Clasen [Fri, 15 May 2020 01:27:45 +0000 (21:27 -0400)]
gtk: Handle seatless displays

If you run weston with the headless backend, you get a Wayland
display with no seat, which is just fine by the protocol.

gdk_display_get_default_seat() returns NULL in this case. Various
widgets assume that we always have a seat with a keyboard and a
pointer, since that is what X guarantees. Make things survive
without that, so we can run the testsuite under a headless
Wayland compositor.

5 years agodocs: Clarify gdk_display_get_default_seat() docs
Matthias Clasen [Fri, 15 May 2020 03:14:04 +0000 (23:14 -0400)]
docs: Clarify gdk_display_get_default_seat() docs

This function can return %NULL if the display
does not have a seat. Document that.

5 years agoMerge branch 'wip/tintou/set_css_classes_array' into 'master'
Timm Bäder [Fri, 15 May 2020 11:19:05 +0000 (11:19 +0000)]
Merge branch 'wip/tintou/set_css_classes_array' into 'master'

widget: Add array annotation to set_css_classes

See merge request GNOME/gtk!1907

5 years agowidget: Add array annotation to set_css_classes
Corentin Noël [Fri, 15 May 2020 10:00:50 +0000 (12:00 +0200)]
widget: Add array annotation to set_css_classes

It expects a NULL-terminated array so annotate it.

5 years agoMerge branch 'wip/jimmac/tabs-again-focus' into 'master'
Jakub Steiner [Fri, 15 May 2020 08:17:58 +0000 (08:17 +0000)]
Merge branch 'wip/jimmac/tabs-again-focus' into 'master'

Adwaita: notebook tab focus tweak

Closes #2721

See merge request GNOME/gtk!1906

5 years agoAdwaita: notebook tab focus tweak
Jakub Steiner [Fri, 15 May 2020 07:32:41 +0000 (09:32 +0200)]
Adwaita: notebook tab focus tweak

Finally fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/2721

5 years agoMerge branch 'tests-cleanup' into 'master'
Matthias Clasen [Fri, 15 May 2020 01:38:38 +0000 (01:38 +0000)]
Merge branch 'tests-cleanup' into 'master'

Tests cleanup

See merge request GNOME/gtk!1904

5 years agotests: Drop testdnd3
Matthias Clasen [Fri, 15 May 2020 00:32:53 +0000 (20:32 -0400)]
tests: Drop testdnd3

This has been integrated in gtk4-demo as the
DND example.

See #2738

5 years agotests: Rename testheaderbar2 to testheaderbar
Matthias Clasen [Fri, 15 May 2020 00:15:59 +0000 (20:15 -0400)]
tests: Rename testheaderbar2 to testheaderbar

There is only one headerbar test now.

5 years agotests: Consolidate all headerbar tests
Matthias Clasen [Fri, 15 May 2020 00:01:45 +0000 (20:01 -0400)]
tests: Consolidate all headerbar tests

No need to have several binaries for this.

See #2738

5 years agotests: Drop testorientable
Matthias Clasen [Thu, 14 May 2020 23:48:08 +0000 (19:48 -0400)]
tests: Drop testorientable

Not really that interesting, and it only
tests a single case of orientable, a box.

See #2738

5 years agotests: Drop testemblems
Matthias Clasen [Thu, 14 May 2020 23:44:54 +0000 (19:44 -0400)]
tests: Drop testemblems

We no longer support emblems on icons.

See #2738

5 years agotests: Drop testgiconpixbuf
Matthias Clasen [Thu, 14 May 2020 23:43:01 +0000 (19:43 -0400)]
tests: Drop testgiconpixbuf

More a pixbuf test, and we don't support
emblems anymore.

See #2738

5 years agotests: Drop testbuttons
Matthias Clasen [Thu, 14 May 2020 23:15:06 +0000 (19:15 -0400)]
tests: Drop testbuttons

This does not really add much. We have plenty
of different button styles in our demos and
tests.

See #2738

5 years agoMerge branch 'wip/exalm/kinetic_scrolling' into 'master'
Matthias Clasen [Thu, 14 May 2020 22:40:54 +0000 (22:40 +0000)]
Merge branch 'wip/exalm/kinetic_scrolling' into 'master'

eventcontrollerscroll: Fix the history push condition

See merge request GNOME/gtk!1902

5 years agoeventcontrollerscroll: Fix the history push condition
Alexander Mikhaylenko [Thu, 14 May 2020 20:20:38 +0000 (01:20 +0500)]
eventcontrollerscroll: Fix the history push condition

Once upon a time, there was a function called gdk_event_get_scroll_deltas().
It returned %TRUE when an event had scroll deltas and that was used as the
condition to decide whether to push scroll deltas to the scroll history,
even when the both deltas are 0 for the stop event at the end of scrolling.

When GtkScrolledWindow kinetic scrolling code was adapted for
GtkEventControllerScroll, it was replaced with a (dx != 0 && dy != 0)
check. This prevented the stop event from getting into the history, and
instead allowed non-smooth scrolling to affect the history as they have
synthetic deltas with one of the values being -1 or 1 and the other on 0.

Instead, check the direction as we already have it as a local variable.

5 years agoMerge branch 'wip/jimmac/focus-tabs' into 'master'
Jakub Steiner [Thu, 14 May 2020 17:35:10 +0000 (17:35 +0000)]
Merge branch 'wip/jimmac/focus-tabs' into 'master'

Adwaita: don't focus outline tabs with mouse

Closes #2721

See merge request GNOME/gtk!1901

5 years agoAdwaita: don't focus outline tabs with mouse
Jakub Steiner [Thu, 14 May 2020 16:50:47 +0000 (18:50 +0200)]
Adwaita: don't focus outline tabs with mouse

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/2721

5 years agoMerge branch 'wip/exalm/headerbar-migration' into 'master'
Matthias Clasen [Thu, 14 May 2020 15:37:16 +0000 (15:37 +0000)]
Merge branch 'wip/exalm/headerbar-migration' into 'master'

docs: Mention GtkHeaderBar title and subtitle changes in migration guide

See merge request GNOME/gtk!1900

5 years agodocs: Mention GtkHeaderBar title and subtitle changes in migration guide
Alexander Mikhaylenko [Thu, 14 May 2020 13:53:09 +0000 (18:53 +0500)]
docs: Mention GtkHeaderBar title and subtitle changes in migration guide

5 years agoMerge branch 'x11-dnd-fix' into 'master'
Matthias Clasen [Thu, 14 May 2020 13:10:54 +0000 (13:10 +0000)]
Merge branch 'x11-dnd-fix' into 'master'

Fix dnd on X11

See merge request GNOME/gtk!1899

5 years agoGdkX11DragSurface: set visible state and invalidate on present
Alexander Larsson [Thu, 14 May 2020 12:33:57 +0000 (14:33 +0200)]
GdkX11DragSurface: set visible state and invalidate on present

Without this we won't actually draw the surface.

5 years agoUpdated Spanish translation
Daniel Mustieles [Thu, 14 May 2020 10:04:27 +0000 (12:04 +0200)]
Updated Spanish translation

5 years agoUpdated Spanish translation
Daniel Mustieles [Thu, 14 May 2020 10:00:33 +0000 (12:00 +0200)]
Updated Spanish translation

5 years agoX11 dnd: Calculate relative coords right in events
Alexander Larsson [Thu, 14 May 2020 09:46:33 +0000 (11:46 +0200)]
X11 dnd: Calculate relative coords right in events

GdkSurface.x/y is mostly 0, we need to look atht GdkX11Surface->abs_x/y.

5 years agogtk-demo/dnd: Fix up drag_cancel
Alexander Larsson [Thu, 14 May 2020 08:45:38 +0000 (10:45 +0200)]
gtk-demo/dnd: Fix up drag_cancel

This needs to return a boolean, also it should not call end because
that will be called anyway by Gtk+ after cancel, and this was causing
warnings due to the opacity being unset with no dragged widget set.

5 years agoGtkDragSource: Pass return value of drag-cancel into drag_end()
Alexander Larsson [Thu, 14 May 2020 08:44:07 +0000 (10:44 +0200)]
GtkDragSource: Pass return value of drag-cancel into drag_end()

This is needed to work as the docs say (don't play fallback cancel animation
if cancel returned TRUE to signal the drop already happened).

5 years agogtk-demo/dnd: Use gtk_popover_set_child(), not gtk_box_append
Alexander Larsson [Thu, 14 May 2020 08:13:05 +0000 (10:13 +0200)]
gtk-demo/dnd: Use gtk_popover_set_child(), not gtk_box_append

5 years agox11 drag: Fix mapped error
Alexander Larsson [Thu, 14 May 2020 07:42:53 +0000 (09:42 +0200)]
x11 drag: Fix mapped error

In the gtk-demo drag-and-drop demo i can't drag anything, all I get
is:

(gtk4-demo:358993): Gdk-CRITICAL **: 09:36:19.617: Surface 0x7e1bb0 has not been mapped in GdkSeatGrabPrepareFunc

This is because GdkX11Drag.ipc_surface is not considered mapped, even
though we called gdk_x11_surface_show() on it, because the
GDK_SURFACE_STATE_WITHDRAWN flag is still set.

I added calls to gdk_synthesize_surface_state() to match what
e.g. show_popup() and gdk_x11_toplevel_present() does.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Thu, 14 May 2020 05:47:26 +0000 (05:47 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!1897

5 years agogtk-demo: Fix a problem with the dnd demo
Matthias Clasen [Thu, 14 May 2020 05:16:56 +0000 (01:16 -0400)]
gtk-demo: Fix a problem with the dnd demo

When I move this into gtk-demo, I broke the hack
that ensures the GtkColorSwatch type is registered.
Bring it back.

5 years agowidget-factory: Ensure we have some backgrounds
Matthias Clasen [Thu, 14 May 2020 03:25:58 +0000 (23:25 -0400)]
widget-factory: Ensure we have some backgrounds

The flowbox demo is otherwise less than useful,
if /usr/share/gnome/backgrounds isn't present.

At the same time, give the scale in the listbox
some function.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Thu, 14 May 2020 03:28:08 +0000 (03:28 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!1896

5 years agoAdd a test for a flowbox crash
Matthias Clasen [Thu, 14 May 2020 00:14:43 +0000 (20:14 -0400)]
Add a test for a flowbox crash

5 years agoflowbox: Avoid an assertion in snapshot()
Matthias Clasen [Thu, 14 May 2020 00:33:25 +0000 (20:33 -0400)]
flowbox: Avoid an assertion in snapshot()

The api contract for size_allocate() vfuncs is
that they must allocate all the children that are
going to be snapshotted in snapshot(). The flowbox
size_allocate() was just bailing out when the children
request a size of 0x0, leading to an assertion in
snapshot() vfunc later. Just allocate all children
a size of 0x0 in this case.

5 years agoflowbox: Avoid a crash in measure()
Matthias Clasen [Thu, 14 May 2020 00:32:30 +0000 (20:32 -0400)]
flowbox: Avoid a crash in measure()

When the children request a height of zero, the
flowbox measure() function was happily dividing
by that zero, leading to badness.

5 years agolistbox: Make Shift-Tab work again
Matthias Clasen [Thu, 14 May 2020 01:45:25 +0000 (21:45 -0400)]
listbox: Make Shift-Tab work again

The previous fix broke the case where we're Shift-Tabbing
from a listboxrow child to the row itself. This was causing
the widget-factory2.tab-backward test to fail. Fix it, by
grabbing the focus to the row explicitly.

5 years agolistbox: Don't steal focus-on-click
Matthias Clasen [Wed, 13 May 2020 23:43:04 +0000 (19:43 -0400)]
listbox: Don't steal focus-on-click

If a row has content that is focus-on-click, and is set
to focus-on-click itself, then the row steals the focus
fromt he content, since it uses focus-on-click on button
release, as opposed to button press. Avoid that by
refusing to take focus if it is already on some
descendent of the row.

This was showing up in the widget-factory listbox on
page 2, where clicking on the spinbutton would briefly
put the focus on the spinbutton, only to lose it to
the row.

5 years agowidget-factory: Cosmetic changes
Matthias Clasen [Wed, 13 May 2020 23:21:50 +0000 (19:21 -0400)]
widget-factory: Cosmetic changes

Change which rows in the listbox on page 2 are activatable,
and trigger a dialog. It did not really make sense that this
would happen when clicking on the spin button to focus it.

5 years agogtk-demo: Don't overdraw the fishbowl
Matthias Clasen [Wed, 13 May 2020 23:21:00 +0000 (19:21 -0400)]
gtk-demo: Don't overdraw the fishbowl

Set overflow to hidden for the fishbowl widget, so the
blur buttons don't leak out into the window shadow.

5 years agoinspector: Disable recursive inspection
Matthias Clasen [Wed, 13 May 2020 22:56:25 +0000 (18:56 -0400)]
inspector: Disable recursive inspection

We can't inspect the inspector, it doesn't work.
Therefore, disable the keybindings in the
inspector window.

5 years agoflowbox: Make the children focusable again
Matthias Clasen [Wed, 13 May 2020 22:27:18 +0000 (18:27 -0400)]
flowbox: Make the children focusable again

This broke when the :focusable property was introduced.
The symptom was that keynav in the Emoji chooser did
not work anymore.

5 years agoMerge branch 'tests-cleanup' into 'master'
Matthias Clasen [Wed, 13 May 2020 22:19:55 +0000 (22:19 +0000)]
Merge branch 'tests-cleanup' into 'master'

Tests cleanup

See merge request GNOME/gtk!1894

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Wed, 13 May 2020 21:57:15 +0000 (21:57 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!1895

5 years agogtk-demo: Plug a memory leak
Matthias Clasen [Wed, 13 May 2020 21:24:57 +0000 (17:24 -0400)]
gtk-demo: Plug a memory leak

This leak was there all along. But with the new
gtk_window_destroy(), it shows up as an unclosable
window. Very noticable.

5 years agoscrolledwindow: Fix swapping out child
Matthias Clasen [Wed, 13 May 2020 21:10:36 +0000 (17:10 -0400)]
scrolledwindow: Fix swapping out child

This was not working in the case that the existing child
is not a scrollable. It showed up as crashes of the
scrolling benchmark in gtk4-demo when switching examples.

5 years agotests: Fix scrolling performance test
Matthias Clasen [Wed, 13 May 2020 21:10:00 +0000 (17:10 -0400)]
tests: Fix scrolling performance test

Maybe this should be added to the benchmarks section
in gtk-demo. For now, fix it to work again.

5 years agotests: Drop testnoscreen
Matthias Clasen [Wed, 13 May 2020 20:35:28 +0000 (16:35 -0400)]
tests: Drop testnoscreen

It tests something that no longer works, and that
we probably don't want to guarantee anyway.

See #2738

5 years agotests: Drop testexpander
Matthias Clasen [Wed, 13 May 2020 20:23:48 +0000 (16:23 -0400)]
tests: Drop testexpander

This was copied into gtk4-demo at some point.

See #2738

5 years agotests: Drop testfontchooser
Matthias Clasen [Wed, 13 May 2020 20:18:50 +0000 (16:18 -0400)]
tests: Drop testfontchooser

This test adds nothing over the font choosers in
our various demos.

See #2738

5 years agotests: Drop testcolorchooser
Matthias Clasen [Wed, 13 May 2020 20:15:09 +0000 (16:15 -0400)]
tests: Drop testcolorchooser

We have plenty of color choosers in demos.
This test doesn't add anything.

See #2738

5 years agoMerge branch 'usable-scales' into 'master'
Matthias Clasen [Wed, 13 May 2020 20:06:51 +0000 (20:06 +0000)]
Merge branch 'usable-scales' into 'master'

Usable scales

See merge request GNOME/gtk!1893

5 years agotests: Drop testbox
Matthias Clasen [Wed, 13 May 2020 19:57:03 +0000 (15:57 -0400)]
tests: Drop testbox

Not useful enough to keep.

See #2738

5 years agotests: Drop testcolorchooser2
Matthias Clasen [Wed, 13 May 2020 19:52:00 +0000 (15:52 -0400)]
tests: Drop testcolorchooser2

This tests an embedded colorchooser. Just like we have in
widget-factory. And it doesn't work in !srcdir builds, so
it can go.

See: #2738

5 years agotests: Drop testicontheme
Matthias Clasen [Wed, 13 May 2020 19:42:25 +0000 (15:42 -0400)]
tests: Drop testicontheme

This is a command line utility for GtkIconTheme
that is probably not as useful as gtk4-icon-browser.

See: #2738

5 years agotests: Drop testpixbuf-scale
Matthias Clasen [Wed, 13 May 2020 19:40:39 +0000 (15:40 -0400)]
tests: Drop testpixbuf-scale

This looks like a GdkPixbuf utility, and we
are moving away from GdkPixbuf anyway.

See: #2738

5 years agotests: Drop testtoolbar2
Matthias Clasen [Wed, 13 May 2020 19:37:21 +0000 (15:37 -0400)]
tests: Drop testtoolbar2

This is just a tool bar styling test; we have
the same in the widget factory.

See: #2738

5 years agoscale: Make the area around the trough clickable
Matthias Clasen [Wed, 13 May 2020 19:23:23 +0000 (15:23 -0400)]
scale: Make the area around the trough clickable

The narrow trough is too hard to hit as a click target.
Make the entire scale clickable.

5 years agoMerge branch 'wip/exalm/ocd' into 'master'
Matthias Clasen [Wed, 13 May 2020 18:31:39 +0000 (18:31 +0000)]
Merge branch 'wip/exalm/ocd' into 'master'

demo: Remove double borders from the treeview

See merge request GNOME/gtk!1892

5 years agoMerge branch 'wip/jimmac/menu-styling-adjustments' into 'master'
Matthias Clasen [Wed, 13 May 2020 17:18:45 +0000 (17:18 +0000)]
Merge branch 'wip/jimmac/menu-styling-adjustments' into 'master'

Wip/jimmac/menu styling adjustments

See merge request GNOME/gtk!1891

5 years agoAdwaita: use thinner arrows for navigation
Jakub Steiner [Wed, 13 May 2020 17:18:45 +0000 (17:18 +0000)]
Adwaita: use thinner arrows for navigation

- go-next go-previous instead of pan-end pan-start

See https://gitlab.gnome.org/GNOME/gtk/-/issues/2675

5 years agodemo: Remove double borders from the treeview
Alexander Mikhaylenko [Wed, 13 May 2020 15:57:00 +0000 (20:57 +0500)]
demo: Remove double borders from the treeview